home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / GTMXMD.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  435 b   |  16 lines

  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <graphics.h>
  4. main()
  5. {
  6.     int graphdriver = DETECT,graphmode;
  7. /*  detect and initialize the graphics system */
  8.     initgraph(&graphdriver,&graphmode, "c:\\turboc");
  9. /*  Print value of maximum mode number allowed */
  10.     printf("Maximum mode number allowed on "
  11.         "current graphics driver: %d\n",
  12.         getmaxmode());
  13. /*  Wait for a keystroke before exiting */
  14.     getch();
  15.     closegraph();
  16. }